package com.gitee.feizns.quickstart.jackson.annotation;

import com.fasterxml.jackson.annotation.JacksonAnnotationsInside;
import com.fasterxml.jackson.annotation.JsonFilter;
import com.gitee.feizns.quickstart.jackson.QuickstartObjectMapper;
import com.gitee.feizns.quickstart.jackson.filter.IgnorePrimitiveSimpleBeanPropertyFilter;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 该注解主要用于对实体类型的基础类型字段
 * @see IgnorePrimitiveSimpleBeanPropertyFilter
 * @author feizns
 * @since 2023/04/02
 */
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
@JacksonAnnotationsInside
@JsonFilter(QuickstartObjectMapper.IGNORE_PRIMITIVE_FILTER_NAME)
public @interface JsonIgnorePrimitive {

}
